<?php
namespace App\Http\Controllers\Admin\Index;

use App\Http\Controllers\Controller;

class IndexController extends Controller
{   
	public $assign = [];

	/**
	 * /    构造函数
	 * @return [type] [description]
	 */
	public function __construct() 
	{
	   $this->model = $_SESSION['M'];
	   if (empty($_COOKIE['TestCookie'])) {
            return redirect($_SESSION['web']['houtai']."login")->send();
        }
	   return true;
	}

	/**
	 * /    首页
	 * @return [type] [description]
	 */
	public function index()
	{
		return view('Admin.Index.index');
	}

}


















